package edu.wpi.cs509.ui.menu;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import edu.wpi.cs509.ui.RulesScreenPanel;
import edu.wpi.cs509.ui.A__MainStrategoClient;
import edu.wpi.cs509.ui.StrategoInfoFrame;

/**
 * The action handler for the "View > Leader Board"
 * 
 * @author jefmarti
 *
 */
public class MenuActionHelpRules implements ActionListener {

	// the stratego client instance
	A__MainStrategoClient client;
	
	/**
	 * Constructor for the action listener
	 * @param a__MainStrategoClient
	 */
	public MenuActionHelpRules(A__MainStrategoClient a__MainStrategoClient) {
		this.client = a__MainStrategoClient;
	}

	/**
	 * Handler for the action event
	 * @param e - the ActionEvent requesting the menuActionQuit 
	 */
	@Override
	public void actionPerformed(ActionEvent e) {
		StrategoInfoFrame rulesFrame = new StrategoInfoFrame( new RulesScreenPanel( ) );
		Dimension dim;
		
		dim = new Dimension(400,100);	
		rulesFrame.setPreferredSize( dim );
		rulesFrame.setSize( dim );
		rulesFrame.setTitle("CS509 Stratego Rules");
		rulesFrame.displayInfoPanel();
		rulesFrame.setVisible(true);
	}

}
